package com.oa.common.enums;

import com.oa.common.interfaces.CodeStatus;

/**
 * 文件的类型
 */
public enum PersonType implements CodeStatus {

    /** 未审核 **/
    UNAUDITED(0,"未审核"),

    /** 审核 **/
    AUDIT(1,"审核"),

    /** 拒绝 **/
    REFUSE(2,"拒接"),

    /** 退回 **/
    RETURN(3,"退回"),

    /** 等待审核 **/
    WAIT_AUDIT(4,"等待审核"),

    /** 结束 **/
    FINISH(5,"结束")
    ;

    /** 编码 **/
    private int code;

    /** 说明 **/
    private String message;

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public void setMessage(String message) {
        this.message= message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setCode(int code) {
        this.code= code;
    }

    PersonType(int code,String message){
        this.code= code;
        this.message= message;
    }
}
